function Survey(a) {
    this.id = a.id != null ? a.id + "": (new Date()).getTime() + "";
    this.name = a.name != null ? a.name: "";
    this.description = a.description != null ? a.description: "";
    this.type = a.type != null ? a.type: 0;
    this.themeid = a.themeid != null ? a.themeid: 1;
    this.samplecount = a.samplecount != null ? a.samplecount: 100;
    this.starttime = a.starttime != null ? a.starttime: "";
    this.endtime = a.endtime != null ? a.endtime: "";
    this.logo = a.logo != null ? a.logo: "";
    this.word = a.word != null ? a.word: "";
    this.wordtype = a.wordtype != null ? a.wordtype: 1;
    this.url = a.url != null ? a.url: "";
    this.emailnotice = a.emailnotice != null ? a.emailnotice: 0;
    this.email = a.email != null ? a.email: "";
    this.emailweek = a.emailweek != null ? a.emailweek: 0;
    this.emailmonth = a.emailmonth != null ? a.emailmonth: 0;
    this.emailfinish = a.emailfinish != null ? a.emailfinish: 0;
    this.timeschedule = a.timeschedule != null ? a.timeschedule: 0;
    this.allowcookies = a.allowcookies != null ? a.allowcookies: 0;
    this.allowip = a.allowip != null ? a.allowip: 0;
    this.mobilenotice = a.mobilenotice != null ? a.mobilenotice: 0;
    this.mobile = a.mobile != null ? a.mobile: "";
    this.progressbar = a.progressbar != null ? a.progressbar: 0;
    this.buttontype = a.buttontype != null ? a.buttontype: 0;
    this.allowreport = a.allowreport != null ? a.allowreport: 1;
    this.isopen = a.isopen != null ? a.isopen: 0;
    this.comment = a.comment != null ? a.comment: "{}";
    this.taobaostate = a.taobaostate != null ? a.taobaostate: 0;
    this.taobaoconfig = a.taobaoconfig != null ? a.taobaoconfig: "{}";
    this.accelerate = a.accelerate != null ? a.accelerate: 0;
    this.pagelist = a.pagelist != null ? a.pagelist: null
};